const { updateVersionByParams } = require('./versionManage');

let version = '0.0.1';
process.argv.forEach((val, index) => {
  console.log(`${index}: ${val}`);
  if (val.includes('version')) {
    let versionArr = val.split('=');
    version = versionArr[1];
  }
});

updateVersionByParams(version);
